﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LinkCategory.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_FriendLink.LinkCategory" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>友情链接位置管理</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
.selectlinkno
{
	width:200px;
	color:#000;
	background-color:#ccc; 
	border:dotted 1px #ddd;
}
.linkno
{
	width:200px;
	color:#000;
	background-color:#fff; 
	border:dotted 1px #ddd;
}
</style>
<script language="javascript" type="text/javascript">
function SwapText()
{
    var obj=document.getElementById("DdlMenu");
    var classname=obj.options[obj.selectedIndex].text;
    var classno=obj.options[obj.selectedIndex].value;
    if(classno!="")
    {
        document.getElementById("txtClsname").value=classname;
        var txtClsno=document.getElementById("txtClsno");
        txtClsno.value=classno; 
        txtClsno.className="selectlinkno";
        txtClsno.disabled=true;
    }
    else
    {
        document.getElementById("txtClsname").value="";
        var txtClsno=document.getElementById("txtClsno");
        txtClsno.value=classno; 
        txtClsno.className="linkno";
        txtClsno.disabled=false;
    }   
}
function CheckSubmit()
{
    return confirm("确定删除吗？");
}
</script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label>设置 > 友情链接位置</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <a href='javascript:window.history.back();'>返回</a>   
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>
    
    
<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">
    
    
    <form id="form1" runat="server">
     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">
            
          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">

            <tr>
              <td width="145" align="right" nowrap bgcolor="#F4FBFF">友情链接类别:</td>
              <td width="1040" bgcolor="#F4FBFF"> 
                <asp:DropDownList ID="DdlMenu" runat="server" CssClass="enfont2 input" Width="200px" ></asp:DropDownList>
               </td>
            </tr>
            
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">链接编号:</td>
              <td bgcolor="#F4FBFF">
                <asp:TextBox ID="txtClsno" runat="server"  CssClass="linkno" Width="200px"></asp:TextBox>
                (链接编号用于模板快速查找或定位到指定页面，推荐使用拼音字母)
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  ErrorMessage="链接编号不能为空" ControlToValidate="txtClsno"></asp:RequiredFieldValidator> 
               </td>
            </tr>
            
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">类别名:</td>
              <td bgcolor="#F4FBFF">
                <asp:TextBox ID="txtClsname" runat="server"  CssClass="input" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  ErrorMessage="类别名不能为空" ControlToValidate="txtClsname"></asp:RequiredFieldValidator> 
               </td>
            </tr>
            
            <tr>
              <td bgcolor="#F4FBFF">&nbsp;</td>
              <td bgcolor="#F4FBFF">
              <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnAdd"  runat="server" 
                      Text=" 添加 " onclick="btnAdd_Click"  />&nbsp;&nbsp;
              <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnUpdate"  runat="server" 
                      Text=" 修改 " onclick="btnUpdate_Click"  />&nbsp;&nbsp;
              <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnDelete"  runat="server" 
                      Text=" 删除 " onclick="btnDelete_Click" OnClientClick="return CheckSubmit();" />
              </td>
            </tr>
          </table>
          

        </td>
      </tr>
     </table>
    </form>

    </td>
  </tr>
 </table>
</div>
</body>
</html>